<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

//获取验证码
Route::post('get_captcha', 'User/getCaptcha');
//注册
Route::post('registration', 'User/registration');
//登录
Route::post('login', 'User/login');
//获取用户信息
Route::post('get_user_info', 'User/getUserInfo');
//发布回收物
Route::post('publish_recycle', 'Recyclables/publishRecycle');
//获取回收物信息
Route::post('get_recycle', 'Recyclables/getRecycle');
//搜索回收物信息
Route::post('search', 'Recyclables/search');
//获取回收物详情
Route::post('get_recyclables_info', 'Recyclables/getRecyclablesInfo');
//获取我的交易数量
Route::post('get_my_pay_count', 'Orders/getMyPayCount');
//获取我发布的回收物信息
Route::post('get_my_publish', 'Orders/getMyPublish');
//删除我的发布回收物信息
Route::post('del_my_publish', 'Orders/delMyPublish');
//编辑我的发布回收物信息
Route::post('edit_my_publish', 'Orders/editMyPublish');
//获取我卖出的回收物信息
Route::post('get_my_sell', 'Orders/getMySell');
//获取我买到的回收物信息
Route::post('get_my_buy', 'Orders/getMyBuy');
//获取我的收藏
Route::post('get_my_favorite', 'User/getMyFavorite');
//删除我的收藏
Route::post('del_my_favorite', 'User/delMyFavorite');
//获取历史浏览
Route::post('get_history_browsing', 'User/getHistoryBrowsing');
//增加历史浏览
Route::post('add_history_browsing', 'User/addHistoryBrowsing');
Route::post('del_history_browsing', 'User/delHistoryBrowsing');
